package com.woniu.service;


import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.model.model.YCourseOrder;
import com.woniu.model.param.OrderPayParam;
import com.woniu.model.param.OrderPersonalClassParam;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 胡歌
 * @since 2024年05月28日
 */
public interface YCourseOrderService extends IService<YCourseOrder> {

    String orderLeagueClass(Integer userId, Integer leagueClassId);

    List<YCourseOrder> loadClassOrderByUserId(Integer userId,Integer orderState);

    String pay(OrderPayParam orderPayParam) throws Exception;

    void payNotify(Map<String, String> params) throws AlipayApiException;

    String orderPersonalClass(OrderPersonalClassParam param);
}
